package com.bosssoft.g1.common.exception.parse;

/**
 * @file: sd365-common-common-g05 com.sd365.common.core.common.exception
 * @author: Sukaiting
 * @date: 2020/8/26 16:03
 * @copyright: 2020-2023 www.bosssoft.com.cn Inc. All rights reserved.
 */

import com.bosssoft.g1.common.exception.code.IErrorCode;
import com.bosssoft.g1.common.exception.code.IModuleCode;

/**
 * @class BusinessException
 * @classdesc  数据库操作异常将不再转化直接以SQLException 抛出全局捕获
 * abel.zhan 2023-02-13 增加了一个只接受errorcode的构造方法
 * @author Sukaiting  updated by abel.zhan
 * @date 2020/8/26  16:03
 * @version 1.0.0
 * @see
 * @since
 */
public class UsernameExistException extends AppException {
    private static final long serialVersionUID = 6304058622501786159L;

    public UsernameExistException() {
    }

    public UsernameExistException(String code, String message) {
        super(code, message);
    }

    /**
     *  增加该方法不免构造强制需要Exception对象
     * @param errorCode
     */
    public UsernameExistException(IErrorCode errorCode) {
        super(errorCode);
    }


    public UsernameExistException(String code, String message, Throwable cause) {
        super(code, message, cause);
    }

    public UsernameExistException(IErrorCode errorCode, Throwable cause) {
        super(errorCode, cause);
    }

    public UsernameExistException(IModuleCode moduleCode, IErrorCode errorCode, Throwable cause) {
        super(moduleCode, errorCode, cause);
    }
}
